package com.changgou;

import org.springframework.security.crypto.bcrypt.BCrypt;

public class test {
    public static void main(String[] args) {
        String gensalt = BCrypt.gensalt();
        System.out.println(gensalt);
        String password = BCrypt.hashpw("123456", gensalt);
        System.out.println(password);

        System.out.println("===============");

        boolean b = BCrypt.checkpw("123456", password);
        System.out.println(b);
    }
}
